<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      :root,
      body {
        margin: 0;
        height: 100%;
      }
      #green,
      #red,
      #blue {
        width: 600px;
        height: 300px;
      }
      #green {
        background-color: green;
      }
      #red {
        background-color: red;
      }
      #blue {
        background-color: blue;
      }
      div[id]:not(:target) {
        display: none;
      }
    </style>
  </head>
  <body>
    <div class="btnWrappr">
      <a href="#green">green</a>
      <a href="#red">red</a>
      <a href="#blue">blue</a>
    </div>
    <div id="green"></div>
    <div id="red"></div>
    <div id="blue"></div>
  </body>
</html>
